#ifndef _MENU_CONFIG_
#define _MENU_CONFIG_

#include "typedef.h"
#include "id_define.h"

typedef U16 (*fMenu)(char *);

typedef struct
{
    U16  ctrl_id;
    fMenu trig;
    U16  next;
    U16  prev;
}menu_ctrl;

typedef struct
{       
    U16  screen_id;
    fMenu init_func;
    U16  next;
    U16  prev;
    menu_ctrl *ctrl;
    U16  count;
}menu_screen;

#define CUR_PAGE  0
#define NEXT_PAGE 1
#define PREV_PAGE 2
#define NONE_PAGE 3

int find_menu(U16 screen_id,menu_screen *s);

#endif

// end of file ------------------

